import java.awt.*;

public class Room {
	
	public int worldWidth = 12; //how big the map of the towers is,width
	public int worldHeight = 8; //how big the map of the towers is, height
	public int blockSize = 52; //size of each block
	
	public Block[][] blockArray;
	
	public Room()
	{
		define();
	}
	
	public void define()
	{
		
		blockArray = new Block[worldHeight][worldWidth];
		
		for(int y=0;y<blockArray.length;y++)
		{
			for(int x=0;x<blockArray[0].length;x++) //tranverse through the array
			{
				blockArray[y][x] = new Block (
						(Window.myWidth/2)-((worldWidth*blockSize)/2)+(x * blockSize), //centers the blocks
						 y*blockSize, 												
						blockSize, blockSize, Value.groundGrass, Value.airAir);
			}
		
			
		}
	}
	
	public void physics()
	{
		
	}
	public void draw(Graphics g)
	{
		
		for(int y=0;y<blockArray.length;y++)
		{
			for(int x=0;x<blockArray[0].length;x++)
			{
				blockArray[y][x].draw(g);
			}
		}
			
		
	}

}
